import 'package:flutter/material.dart';
import 'package:fluro/fluro.dart';
import './router_handle.dart';

class RoutesConfig {
  static String root = '/';
  static String detailsPage = '/details';

  static void configureRoutes(Router router) {
    router.notFoundHandler = Handler(
      handlerFunc: (BuildContext context, Map<String, dynamic> params) {
        print('ERROR=>>>ROUTE NOT FOUND!');
        return Text('404');
      }
    );

    router.define(detailsPage, handler: detailsHandler);
  }
}